//
//  LyView.m
//  UI14_豆瓣电影更新版
//
//  Created by dllo on 16/1/4.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "LyView.h"

@implementation LyView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}
- (void)dealloc {
    [_label release];
    [_textField release];
    [super dealloc];
}

- (void)creat {
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
    [self addSubview:_label];
    [_label release];
    
    self.textField = [[UITextField alloc] initWithFrame:CGRectMake(100, 0, 200, 40)];
    _textField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:_textField];
    _textField.layer.borderWidth = 2;
    _textField.layer.cornerRadius = 10;
    _textField.clearButtonMode = YES;
    [_textField release];
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
